package chain;

public class DeviceExceptionHandler extends ExceptionHandler{
    @Override
    public void handle(SystemException exception) {
        if (exception.getCode().startsWith("DEV_")) {
            System.out.println("[设备异常处理] 正在尝试恢复设备...");
            System.out.println("已发送重启指令");
        } else {
            passToNext(exception);
        }
    }
}
